package com.onenine.app.event;

/**
 * 创建时间：2018/7/23 0023 17:15
 * 创建人：fly
 * 功能描述：消息计数事件
 */
public class MessageCountEvent {

    public static final int TOPIC_MESSAGE = 1;
    public static final int NEW_FRIEND_MESSAGE = TOPIC_MESSAGE + 1;
    public static final int SYSTEM_MESSAGE = NEW_FRIEND_MESSAGE + 1;
    private int type;
    private int count;
    private String extra;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getExtra() {
        return extra == null ? "" : extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    @Override
    public String toString() {
        return "MessageCountEvent{" +
                "type=" + type +
                ", count=" + count +
                '}';
    }
}
